{extend name="AdminPublic/public"}
{block name="admin"}
  <div class="row"> 
   <div class="col-lg-12"> 
    <section class="panel"> 
     <header class="panel-heading"> 
      <span style="font-size:20px;">您的位置 :</span> 
      <span style="color:#65CEA7;">广告管理 > 广告编辑</span> 
      <span class="tools pull-right"> <a href="javascript:;" class="fa fa-chevron-down"></a> <a href="javascript:;" class="fa fa-times"></a> </span> 
     </header> 
     <div class="panel-body"> 
      <div class=" form"> 
       <form class="cmxform form-horizontal adminex-form" id="commentForm" method="post" action="/adminadvert/doedit" enctype="multipart/form-data" novalidate="novalidate" >
       <input type="hidden" name="src" value="{$data[0]['pic']}"> 
        <div class="form-group "> 
         <label for="cname" class="control-label col-lg-2" >广告标题</label> 
         <div class="col-lg-10"> 
          <input class=" form-control" id="cname" name="title" minlength="2" type="text" required="" value="{$data[0]['title']}"/> 
         </div> 
        </div>
        <div class="form-group "> 
         <label for="cname" class="control-label col-lg-2" >广告链接</label> 
         <div class="col-lg-10"> 
          <input class=" form-control" id="cname" name="url" minlength="2" type="text" required="" value="{$data[0]['url']}"/> 
         </div> 
        </div>
        <div class="form-group "> 
         <label for="cname" class="control-label col-lg-2">广告状态</label> 
         <div class="col-lg-10"> 
          <select class="form-control m-bot15" name="status">
          <option {if condition="$data[0]['status']==0"}selected{else/}{/if}>显示</option> <option {if condition="$data[0]['status']==0"}{else/}selected{/if}>隐藏</option></select> 
         </div> 
        </div>
        <input type="hidden" name="id" value="{$data[0]['id']}">  
       <div class="form-group"> 
        <label class="control-label col-lg-2">广告图片</label> 
        <div class="col-md-4"> 
         <input type="file" class="default" name="pic"/> 
        </div> 
   </div> 
   
        <div class="form-group"> 
         <div class="col-lg-offset-2 col-lg-10"> 
          <button class="btn btn-primary" type="submit">提交</button> 
          <button class="btn btn-default" type="reset">重置</button> 
         </div> 
        </div> 
       </form> 
      </div> 
     </div> 
    </section> 
   </div> 
  </div>
{/block}